3f5f153ca477c2fd5b1aef7c46238a28657c8b84,opennms-services/src/main/java/org/opennms/netmgt/enlinkd/snmp/IpNetToMediaTableTracker.java,IpNetToMediaRow,getIpNetToMediaPhysAddress,#,137
Before Change
// This is the normal case that most agents conform to: the value is an ASCII
// string representing the colon-separated MAC address. We just need to reformat
// it to remove the colons and convert it into a 12-character string.
return normalizeMacAddress(mac.toDisplayString());
} catch (IllegalArgumentException e) {
LOG.warn("IllegalArgument mac on ipnettomediatable: return null", e);
return null;
After Change
// This is the normal case that most agents conform to: the value is an ASCII
// string representing the colon-separated MAC address. We just need to reformat
// it to remove the colons and convert it into a 12-character string.
String displayString = mac.toDisplayString();
return displayString == null || displayString.trim().isEmpty() ? null : normalizeMacAddress(displayString);
}
} catch (IllegalArgumentException e) {
LOG.warn("IllegalArgument mac on ipnettomediatable: return null", e);